package vip.xiaonuo.biz.modular.Englishword.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class EnglishArticleWithQuestionsResult {
    private EnglishArticleResult article; // 对应的文章
    private List<EnglishMultipleChoiceQuestionResult> questions; // 文章对应的选择题列表

    // 构造函数、getter和setter略
    public EnglishArticleWithQuestionsResult(EnglishArticleResult article, List<EnglishMultipleChoiceQuestionResult> questions) {
        this.article = article;
        this.questions = questions;
    }

    public void addQuestion(EnglishMultipleChoiceQuestionResult question) {
        questions.add(question);
    }
}
